translate
Translates the transformation matrix by a given vector. The x and y components of the vector represent the translation in the respective directions.
Return
A new affine transformation matrix with the translation applied.
Parameters
translation
The vector to translate the matrix.
Translates the transformation matrix by a given distance in the x and y directions.
Return
A new affine transformation matrix with the translation applied.
Parameters
tx
The translation in the x-direction.
ty
The translation in the y-direction.